<template>
  <div class="saearch-block-container">
    <el-row>
      <el-col :span="5">
        <el-input
          @keyup.enter.native="handleSearch"
          clearable
          placeholder="请输入名称"
          size="small"
          v-model="searchParams.userName"
        ></el-input>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  userName: 'SearchBlock',
  methods: {
    handleSearch() {
      this.$emit('handleSearch', this.searchParams)
    }
  },
  data() {
    return {
      searchParams: {
        userName: null
      }
    }
  }
}
</script>

<style lang="scss" scoped>
</style>

